package com.study.studycase.demo1;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ctl
 * @date 2024-01-10
 */
public class Music {
    public static void main(String[] args) {
        List<Instrument> instruments = new ArrayList<>();
        instruments.add(new Wind());
        instruments.add(new Percussion());
        instruments.add(new Instrument());
        for(Instrument instrument : instruments) {
            instrument.play();
        }
    }
}
